package com.fresh.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fresh.entity.Permission;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {

    ArrayList<Integer> getRoleId(Integer userId);

    ArrayList<Integer> getPermissionId(Integer roleId);
}
